Calculate Fixed Deposit ROI
GET /fixed-deposit/roi
Description
Calculates the Return on Investment (ROI) for a fixed deposit account. This endpoint requires specific headers and query parameters to perform the calculation.
Headers:
| Name | Type | Description |
|---|---|---|
tenantId | string | The unique identifier for the tenant (required). |
countryCode | string | The country code (required). |
userId | string | The unique identifier for the user (required). |
Query Parameters:
| Name | Type | Description |
|---|---|---|
capital | number | The capital amount for the investment (required). |
productId | integer | The product ID for the fixed deposit account (required). |
Example Request:
curl -X GET "{{baseURL}}/fixed-deposit/roi" \
-H "Authorization: Bearer [access_token]" \
-H "tenantId: [tenantId]" \
-H "countryCode: [countryCode]" \
-H "userId: [userId]" \
-G \
--data-urlencode "capital=10000" \
--data-urlencode "productId=12345"
Sample Response: 200
{
"status": true,
"statusCode": 0,
"message": "string",
"data": {},
"errors": [
{
"message": "string",
"data": {},
"descriptiveMessage": "string"
}
]
}
LANGUAGE
CURL REQUEST
curl --request GET \
--url /fixed-deposit/roi \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!